<?php
error_reporting(E_ALL | E_STRICT);
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
date_default_timezone_set('America/Los_Angeles');

define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
define('APPLICATION_ENV', 'testing');
define('LIBRARY_PATH', realpath(dirname(__FILE__) . '/../library'));
define('TESTS_PATH', realpath(dirname(__FILE__)));
define('ZEND_DEPENDENCY_LIBRARY_PATH', realpath(dirname(__FILE__) . '/../../dependencies'));
define('DEPENDENCY_LIBRARY_PATH', realpath(dirname(__FILE__) . '/../../dependencies'));

$includePaths = array(LIBRARY_PATH, DEPENDENCY_LIBRARY_PATH, 
ZEND_DEPENDENCY_LIBRARY_PATH, 
realpath(APPLICATION_PATH . '/../../dependencies'),
realpath(APPLICATION_PATH . '/../autogen'),
get_include_path());
set_include_path(implode(PATH_SEPARATOR, $includePaths));

require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('Com_');   
$autoloader->registerNamespace('BASIL_');

Zend_Session::$_unitTestEnabled = true;
Zend_Session::start();

// Base classes for test cases
require_once 'PHPUnit/Framework.php';
require_once 'ControllerTestCase.php';
